﻿using System;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations.Schema;

namespace App.Authorization
{
    [Table("Permissions")]
    public class PermissionSetting : CreationAuditedEntity, IMayHaveTenant
    {
        public virtual int MenuId { get; set; }

        public virtual int? TenantId { get; set; }

        public virtual bool IsGranted { get; set; }

        protected PermissionSetting()
        {
            IsGranted = true;
        }
    }
}
